package com.ruoyi.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class DemoController {
    @RequestMapping("/getPrint")
    //@ResponseBody
    public String getPrint(){
        /*PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();
        DocFlavor flavor = DocFlavor.BYTE_ARRAY.PNG;
        PrintService printService[] = PrintServiceLookup.lookupPrintServices(flavor,printRequestAttributeSet );
        //获取打印机列表
        List<String> printList = new ArrayList<>();
        for (int i = 0;i<printService.length;i++){
            printList.add(printService[i].getName());
        }*/
        return "system/orderhead/index";
    }
}
